<!DOCTYPE html>



  


<html class="theme-next pisces use-motion" lang="zh-CN">
<head>
  <meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
<meta name="theme-color" content="#222">









<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
















  
  
  <link href="/lib/fancybox/source/jquery.fancybox.css?v=2.1.5" rel="stylesheet" type="text/css" />







<link href="/lib/font-awesome/css/font-awesome.min.css?v=4.6.2" rel="stylesheet" type="text/css" />

<link href="/css/main.css?v=5.1.4" rel="stylesheet" type="text/css" />


  <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png?v=5.1.4">


  <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png?v=5.1.4">


  <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png?v=5.1.4">


  <link rel="mask-icon" href="/images/logo.svg?v=5.1.4" color="#222">





  <meta name="keywords" content="树莓派," />










<meta name="description" content="1.WiFi 网络配置添加文件&#x2F;boot&#x2F;wpa_supplicant.conf 123456789101112131415161718country&#x3D;CNctrl_interface&#x3D;DIR&#x3D;&#x2F;var&#x2F;run&#x2F;wpa_supplicant GROUP&#x3D;netdevupdate_config&#x3D;1 network&#x3D;&amp;#123;ssid&#x3D;&quot;WiFi-A&quot;psk&#x3D;&quot;1234">
<meta property="og:type" content="article">
<meta property="og:title" content="树莓派到手配置">
<meta property="og:url" content="https://luoyezadi.gitee.io/%E6%9C%80%E5%88%9D/%E6%A0%91%E8%8E%93%E6%B4%BE%E5%88%B0%E6%89%8B%E9%85%8D%E7%BD%AE/2019/04/17/index.html">
<meta property="og:site_name" content="落叶砸地">
<meta property="og:description" content="1.WiFi 网络配置添加文件&#x2F;boot&#x2F;wpa_supplicant.conf 123456789101112131415161718country&#x3D;CNctrl_interface&#x3D;DIR&#x3D;&#x2F;var&#x2F;run&#x2F;wpa_supplicant GROUP&#x3D;netdevupdate_config&#x3D;1 network&#x3D;&amp;#123;ssid&#x3D;&quot;WiFi-A&quot;psk&#x3D;&quot;1234">
<meta property="og:locale" content="zh_CN">
<meta property="article:published_time" content="2019-04-17T06:17:00.000Z">
<meta property="article:modified_time" content="2023-08-01T08:46:33.837Z">
<meta property="article:author" content="LZH">
<meta property="article:tag" content="树莓派">
<meta name="twitter:card" content="summary">



<script type="text/javascript" id="hexo.configurations">
  var NexT = window.NexT || {};
  var CONFIG = {
    root: '',
    scheme: 'Pisces',
    version: '5.1.4',
    sidebar: {"position":"left","display":"post","offset":12,"b2t":false,"scrollpercent":false,"onmobile":false},
    fancybox: true,
    tabs: true,
    motion: {"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},
    duoshuo: {
      userId: '0',
      author: 'Author'
    },
    algolia: {
      applicationID: '',
      apiKey: '',
      indexName: '',
      hits: {"per_page":10},
      labels: {"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}
    }
  };
</script>



  <link rel="canonical" href="https://luoyezadi.gitee.io/最初/树莓派到手配置/2019/04/17/"/>





  <title>树莓派到手配置 | 落叶砸地</title>
  








<meta name="generator" content="Hexo 5.4.2"></head>

<body itemscope itemtype="http://schema.org/WebPage" lang="zh-CN">

  
  
    
  

  <div class="container sidebar-position-left page-post-detail">
    <div class="headband"></div>

    <header id="header" class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-wrapper">
  <div class="site-meta ">
    

    <div class="custom-logo-site-title">
      <a href="/"  class="brand" rel="start">
        <span class="logo-line-before"><i></i></span>
        <span class="site-title">落叶砸地</span>
        <span class="logo-line-after"><i></i></span>
      </a>
    </div>
      
        <p class="site-subtitle">java,web,树莓派,花生壳</p>
      
  </div>

  <div class="site-nav-toggle">
    <button>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
    </button>
  </div>
</div>

<nav class="site-nav">
  

  
    <ul id="menu" class="menu">
      
        
        <li class="menu-item menu-item-home">
          <a href="/%20" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-home"></i> <br />
            
            Home
          </a>
        </li>
      
        
        <li class="menu-item menu-item-archives">
          <a href="/archives/%20" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-archive"></i> <br />
            
            Archives
          </a>
        </li>
      

      
    </ul>
  

  
</nav>



 </div>
    </header>

    <main id="main" class="main">
      <div class="main-inner">
        <div class="content-wrap">
          <div id="content" class="content">
            

  <div id="posts" class="posts-expand">
    

  

  
  
  

  <article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
  
  
  
  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="https://luoyezadi.gitee.io/%E6%9C%80%E5%88%9D/%E6%A0%91%E8%8E%93%E6%B4%BE%E5%88%B0%E6%89%8B%E9%85%8D%E7%BD%AE/2019/04/17/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="name" content="">
      <meta itemprop="description" content="">
      <meta itemprop="image" content="/images/avatar.gif">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="落叶砸地">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">树莓派到手配置</h1>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">Posted on</span>
              
              <time title="Post created" itemprop="dateCreated datePublished" datetime="2019-04-17T14:17:00+08:00">
                2019-04-17
              </time>
            

            

            
          </span>

          

          
            
          

          
          

          

          

          

        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      

      
        <h1 id="1-WiFi-网络配置"><a href="#1-WiFi-网络配置" class="headerlink" title="1.WiFi 网络配置"></a>1.WiFi 网络配置</h1><p>添加文件/boot/wpa_supplicant.conf</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br></pre></td><td class="code"><pre><span class="line">country=CN</span><br><span class="line">ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev</span><br><span class="line">update_config=1</span><br><span class="line"> </span><br><span class="line">network=&#123;</span><br><span class="line">ssid=&quot;WiFi-A&quot;</span><br><span class="line">psk=&quot;12345678&quot;</span><br><span class="line">key_mgmt=WPA-PSK</span><br><span class="line">priority=1</span><br><span class="line">&#125;</span><br><span class="line"> </span><br><span class="line">network=&#123;</span><br><span class="line">ssid=&quot;WiFi-B&quot;</span><br><span class="line">psk=&quot;12345678&quot;</span><br><span class="line">key_mgmt=WPA-PSK</span><br><span class="line">priority=2</span><br><span class="line">scan_ssid=1</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>
<p>说明以及不同安全性的 WiFi 配置示例：<br>#ssid:网络的ssid<br>#psk:密码<br>#priority:连接优先级，数字越大优先级越高（不可以是负数）<br>#scan_ssid:连接隐藏WiFi时需要指定该值为1</p>
<span id="more"></span>
<h3 id="记得设置mac和ip绑定"><a href="#记得设置mac和ip绑定" class="headerlink" title="记得设置mac和ip绑定"></a>记得设置mac和ip绑定</h3><p>如果你的 WiFi 没有密码</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">network=&#123;</span><br><span class="line">ssid=&quot;你的无线网络名称（ssid）&quot;</span><br><span class="line">key_mgmt=NONE</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>
<p>如果你的 WiFi 使用WEP加密</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line">network=&#123;</span><br><span class="line">ssid=&quot;你的无线网络名称（ssid）&quot;</span><br><span class="line">key_mgmt=NONE</span><br><span class="line">wep_key0=&quot;你的wifi密码&quot;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>
<p>如果你的 WiFi 使用WPA/WPA2加密</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line">network=&#123;</span><br><span class="line">ssid=&quot;你的无线网络名称（ssid）&quot;</span><br><span class="line">key_mgmt=WPA-PSK</span><br><span class="line">psk=&quot;你的wifi密码&quot;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>

<h1 id="2-开启-SSH-服务"><a href="#2-开启-SSH-服务" class="headerlink" title="2.开启 SSH 服务"></a>2.开启 SSH 服务</h1><h2 id="boot-分区新建一个文件，空白的即可，文件命名为-ssh"><a href="#boot-分区新建一个文件，空白的即可，文件命名为-ssh" class="headerlink" title="boot 分区新建一个文件，空白的即可，文件命名为 ssh"></a>boot 分区新建一个文件，空白的即可，文件命名为 ssh</h2><p>转载<a target="_blank" rel="noopener" href="http://shumeipai.nxez.com/2017/09/13/raspberry-pi-network-configuration-before-boot.html">http://shumeipai.nxez.com/2017/09/13/raspberry-pi-network-configuration-before-boot.html</a></p>
<h1 id="3-更改源和改中文"><a href="#3-更改源和改中文" class="headerlink" title="3.更改源和改中文"></a>3.更改源和改中文</h1><h2 id="3-1树莓派的镜像"><a href="#3-1树莓派的镜像" class="headerlink" title="3.1树莓派的镜像"></a>3.1树莓派的镜像</h2><h1 id="！！！python-ln到python3【sudo-apt-get-upgrade】会出错，记得改回来！！！！这种基础命令最好别动呀！！！！！"><a href="#！！！python-ln到python3【sudo-apt-get-upgrade】会出错，记得改回来！！！！这种基础命令最好别动呀！！！！！" class="headerlink" title="！！！python ln到python3【sudo apt-get upgrade】会出错，记得改回来！！！！这种基础命令最好别动呀！！！！！"></a>！！！python ln到python3【sudo apt-get upgrade】会出错，记得改回来！！！！这种基础命令最好别动呀！！！！！</h1><p>树莓派的镜像文件在/etc/apt/sources.list中</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo nano /etc/apt/sources.list</span><br></pre></td></tr></table></figure>
<p>(习惯适应nano)<br>用#注释掉原文件内容，用以下内容取代：</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">deb http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ stretch main contrib non-free rpi</span><br><span class="line">deb-src http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ stretch main contrib non-free rpi</span><br></pre></td></tr></table></figure>
<p>编辑镜像站后，请使用sudo apt-get update 命令，更新软件源列列表，同时检查你的编辑是否正确</p>
<p>编辑 /etc/apt/sources.list.d/raspi.list</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo nano /etc/apt/sources.list.d/raspi.list</span><br></pre></td></tr></table></figure>
<p>用#注释掉原文内容，用以下内容取代</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">deb http://mirror.tuna.tsinghua.edu.cn/raspberrypi/ stretch main ui</span><br><span class="line">deb-src http://mirror.tuna.tsinghua.edu.cn/raspberrypi/ stretch main ui</span><br></pre></td></tr></table></figure>
<h2 id="此处时间很长，建议先开一个远程桌面，或者用电脑ssh，手机的话很容易断，中间有很多需要输入y的地方"><a href="#此处时间很长，建议先开一个远程桌面，或者用电脑ssh，手机的话很容易断，中间有很多需要输入y的地方" class="headerlink" title="此处时间很长，建议先开一个远程桌面，或者用电脑ssh，手机的话很容易断，中间有很多需要输入y的地方"></a>此处时间很长，建议先开一个远程桌面，或者用电脑ssh，手机的话很容易断，中间有很多需要输入y的地方</h2><p>更新软件索引清单</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo apt-get update</span><br></pre></td></tr></table></figure>
<p>比较索引清单更新依赖关系</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo apt-get upgrade -y</span><br></pre></td></tr></table></figure>
<p>其他一些软件源有：<br>中国科技大学 <a target="_blank" rel="noopener" href="http://mirrors.ustc.edu.cn/raspbian/raspbian/">http://mirrors.ustc.edu.cn/raspbian/raspbian/</a><br>浙江大学  <a target="_blank" rel="noopener" href="http://mirrors.zju.edu.cn/raspbian/raspbian/">http://mirrors.zju.edu.cn/raspbian/raspbian/</a></p>
<h2 id="3-2中文设置"><a href="#3-2中文设置" class="headerlink" title="3.2中文设置"></a>3.2中文设置</h2><p>安装中文字体</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo raspi-config</span><br></pre></td></tr></table></figure>
<h3 id="操作提示：按空格键在前面打钩或者去掉勾（星号-勾），PageUp-PageDown-快速翻页，Tab键跳到OK按钮上"><a href="#操作提示：按空格键在前面打钩或者去掉勾（星号-勾），PageUp-PageDown-快速翻页，Tab键跳到OK按钮上" class="headerlink" title="操作提示：按空格键在前面打钩或者去掉勾（星号=勾），PageUp PageDown 快速翻页，Tab键跳到OK按钮上"></a>操作提示：按空格键在前面打钩或者去掉勾（星号=勾），PageUp PageDown 快速翻页，Tab键跳到OK按钮上</h3><p>去掉en_GB.UTF-8 UTF-8，勾上：“en_US.UTF-8 UTF-8”、“zh_CN.UTF-8 UTF-8”、“zh_CN.GBK GBK”，下一屏幕默认语言选zh_CN.UTF-8。</p>
<p>安装中文输入法:</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo apt-get -y install scim-pinyin</span><br></pre></td></tr></table></figure>
<p>重启生效</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo reboot</span><br></pre></td></tr></table></figure>
<p>转载<a target="_blank" rel="noopener" href="https://blog.csdn.net/weixin_39529413/article/details/79187502">https://blog.csdn.net/weixin_39529413/article/details/79187502</a></p>
<h2 id="这一步操作完事之后发现树莓派无法连接只能用网线，系统卡写入保护（这样的话重装系统费劲了，记得先格式化为NTFS），分析导致原因为两种可能"><a href="#这一步操作完事之后发现树莓派无法连接只能用网线，系统卡写入保护（这样的话重装系统费劲了，记得先格式化为NTFS），分析导致原因为两种可能" class="headerlink" title="这一步操作完事之后发现树莓派无法连接只能用网线，系统卡写入保护（这样的话重装系统费劲了，记得先格式化为NTFS），分析导致原因为两种可能"></a>这一步操作完事之后发现树莓派无法连接只能用网线，系统卡写入保护（这样的话重装系统费劲了，记得先格式化为NTFS），分析导致原因为两种可能</h2><h3 id="1-源更新导致的"><a href="#1-源更新导致的" class="headerlink" title="1.源更新导致的"></a>1.源更新导致的</h3><h3 id="2-是内存卡格式这次用的是FAT32的"><a href="#2-是内存卡格式这次用的是FAT32的" class="headerlink" title="2.是内存卡格式这次用的是FAT32的"></a>2.是内存卡格式这次用的是FAT32的</h3><h3 id="不管怎样现在只能用网线去配置wifi连接了（因为系统可写入保护，显示器都连接不上）"><a href="#不管怎样现在只能用网线去配置wifi连接了（因为系统可写入保护，显示器都连接不上）" class="headerlink" title="不管怎样现在只能用网线去配置wifi连接了（因为系统可写入保护，显示器都连接不上）"></a>不管怎样现在只能用网线去配置wifi连接了（因为系统可写入保护，显示器都连接不上）</h3><h1 id="4-花生壳"><a href="#4-花生壳" class="headerlink" title="4.花生壳"></a>4.花生壳</h1><p>参照官网【花生壳 3.0 for 树莓派 安装使用攻略】<a target="_blank" rel="noopener" href="http://service.oray.com/question/2680.html">http://service.oray.com/question/2680.html</a></p>
<h1 id="5-root用户WinSCP登陆"><a href="#5-root用户WinSCP登陆" class="headerlink" title="5.root用户WinSCP登陆"></a>5.root用户WinSCP登陆</h1><p>1：使用 sudo passwd root 设置好密码（已设置可忽略这步）。<br>2：然后在/etc/ssh/sshd_config中找到PermitRootLogin 这一行将后面的参数改为yes 保存退出。<br>3：重启service ssh restart 。<br>4：重新打开winscp 重新编辑登录信息，使用root用户登录就可以直接拖拽文件。</p>
<h1 id="6-树莓派远程桌面"><a href="#6-树莓派远程桌面" class="headerlink" title="6.树莓派远程桌面"></a>6.树莓派远程桌面</h1><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo apt-get install xrdp</span><br></pre></td></tr></table></figure>
<p>此处详细<a target="_blank" rel="noopener" href="https://blog.csdn.net/wuli_dear_wang/article/details/84446168">https://blog.csdn.net/wuli_dear_wang/article/details/84446168</a><br>VNC好用推荐<a target="_blank" rel="noopener" href="https://www.cnblogs.com/xiaowuyi/p/4012069.html">https://www.cnblogs.com/xiaowuyi/p/4012069.html</a><br>VNC开机自启<a target="_blank" rel="noopener" href="https://www.cnblogs.com/leviatan/p/9428188.html">https://www.cnblogs.com/leviatan/p/9428188.html</a><br><a target="_blank" rel="noopener" href="https://jingyan.baidu.com/article/48b558e3efed767f39c09a5b.html">https://jingyan.baidu.com/article/48b558e3efed767f39c09a5b.html</a></p>
<h1 id="7-树莓派-可以适应显示器的boot-config-txt配置"><a href="#7-树莓派-可以适应显示器的boot-config-txt配置" class="headerlink" title="7.树莓派-可以适应显示器的boot/config.txt配置"></a>7.树莓派-可以适应显示器的boot/config.txt配置</h1><p>[<a target="_blank" rel="noopener" href="https://blog.csdn.net/a497785609/article/details/77726382]%7Bhttps://blog.csdn.net/a497785609/article/details/77726382%7D">https://blog.csdn.net/a497785609/article/details/77726382]{https://blog.csdn.net/a497785609/article/details/77726382}</a></p>
<h1 id="8-树莓派复制系统到新内存卡教程（母鸡生小鸡）"><a href="#8-树莓派复制系统到新内存卡教程（母鸡生小鸡）" class="headerlink" title="8.树莓派复制系统到新内存卡教程（母鸡生小鸡）"></a>8.树莓派复制系统到新内存卡教程（母鸡生小鸡）</h1><p><a target="_blank" rel="noopener" href="https://www.jianshu.com/p/cfa99c3e006e">https://www.jianshu.com/p/cfa99c3e006e</a><br><a target="_blank" rel="noopener" href="https://blog.csdn.net/qq_32863631/article/details/76060508">https://blog.csdn.net/qq_32863631/article/details/76060508</a></p>

      
    </div>
    
    
    

    

    

    

    <footer class="post-footer">
      
        <div class="post-tags">
          
            <a href="/tags/%E6%A0%91%E8%8E%93%E6%B4%BE/" rel="tag"># 树莓派</a>
          
        </div>
      

      
      
      

      
        <div class="post-nav">
          <div class="post-nav-next post-nav-item">
            
              <a href="/%E6%9C%80%E5%88%9D/Hexo%E6%B7%BB%E5%8A%A0%E9%9F%B3%E4%B9%90-%E8%A7%86%E9%A2%91/2019/04/14/" rel="next" title="Hexo添加音乐/视频">
                <i class="fa fa-chevron-left"></i> Hexo添加音乐/视频
              </a>
            
          </div>

          <span class="post-nav-divider"></span>

          <div class="post-nav-prev post-nav-item">
            
              <a href="/%E6%9C%80%E5%88%9D/java%E9%9B%86%E5%90%88%E8%AF%A6%E8%A7%A3%E5%92%8C%E4%B9%8B%E9%97%B4%E5%85%B3%E7%B3%BB/2019/04/20/" rel="prev" title="java集合详解和之间关系">
                java集合详解和之间关系 <i class="fa fa-chevron-right"></i>
              </a>
            
          </div>
        </div>
      

      
      
    </footer>
  </div>
  
  
  
  </article>



    <div class="post-spread">
      
    </div>
  </div>


          </div>
          


          

  



        </div>
        
          
  
  <div class="sidebar-toggle">
    <div class="sidebar-toggle-line-wrap">
      <span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
    </div>
  </div>

  <aside id="sidebar" class="sidebar">
    
    <div class="sidebar-inner">

      

      
        <ul class="sidebar-nav motion-element">
          <li class="sidebar-nav-toc sidebar-nav-active" data-target="post-toc-wrap">
            Table of Contents
          </li>
          <li class="sidebar-nav-overview" data-target="site-overview-wrap">
            Overview
          </li>
        </ul>
      

      <section class="site-overview-wrap sidebar-panel">
        <div class="site-overview">
          <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
            
              <p class="site-author-name" itemprop="name"></p>
              <p class="site-description motion-element" itemprop="description"></p>
          </div>

          <nav class="site-state motion-element">

            
              <div class="site-state-item site-state-posts">
              
                <a href="/archives/%20%7C%7C%20archive">
              
                  <span class="site-state-item-count">37</span>
                  <span class="site-state-item-name">posts</span>
                </a>
              </div>
            

            
              
              
              <div class="site-state-item site-state-categories">
                
                  <span class="site-state-item-count">8</span>
                  <span class="site-state-item-name">categories</span>
                
              </div>
            

            
              
              
              <div class="site-state-item site-state-tags">
                
                  <span class="site-state-item-count">43</span>
                  <span class="site-state-item-name">tags</span>
                
              </div>
            

          </nav>

          

          

          
          

          
          

          

        </div>
      </section>

      
      <!--noindex-->
        <section class="post-toc-wrap motion-element sidebar-panel sidebar-panel-active">
          <div class="post-toc">

            
              
            

            
              <div class="post-toc-content"><ol class="nav"><li class="nav-item nav-level-1"><a class="nav-link" href="#1-WiFi-%E7%BD%91%E7%BB%9C%E9%85%8D%E7%BD%AE"><span class="nav-number">1.</span> <span class="nav-text">1.WiFi 网络配置</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#%E8%AE%B0%E5%BE%97%E8%AE%BE%E7%BD%AEmac%E5%92%8Cip%E7%BB%91%E5%AE%9A"><span class="nav-number">1.0.1.</span> <span class="nav-text">记得设置mac和ip绑定</span></a></li></ol></li></ol></li><li class="nav-item nav-level-1"><a class="nav-link" href="#2-%E5%BC%80%E5%90%AF-SSH-%E6%9C%8D%E5%8A%A1"><span class="nav-number">2.</span> <span class="nav-text">2.开启 SSH 服务</span></a><ol class="nav-child"><li class="nav-item nav-level-2"><a class="nav-link" href="#boot-%E5%88%86%E5%8C%BA%E6%96%B0%E5%BB%BA%E4%B8%80%E4%B8%AA%E6%96%87%E4%BB%B6%EF%BC%8C%E7%A9%BA%E7%99%BD%E7%9A%84%E5%8D%B3%E5%8F%AF%EF%BC%8C%E6%96%87%E4%BB%B6%E5%91%BD%E5%90%8D%E4%B8%BA-ssh"><span class="nav-number">2.1.</span> <span class="nav-text">boot 分区新建一个文件，空白的即可，文件命名为 ssh</span></a></li></ol></li><li class="nav-item nav-level-1"><a class="nav-link" href="#3-%E6%9B%B4%E6%94%B9%E6%BA%90%E5%92%8C%E6%94%B9%E4%B8%AD%E6%96%87"><span class="nav-number">3.</span> <span class="nav-text">3.更改源和改中文</span></a><ol class="nav-child"><li class="nav-item nav-level-2"><a class="nav-link" href="#3-1%E6%A0%91%E8%8E%93%E6%B4%BE%E7%9A%84%E9%95%9C%E5%83%8F"><span class="nav-number">3.1.</span> <span class="nav-text">3.1树莓派的镜像</span></a></li></ol></li><li class="nav-item nav-level-1"><a class="nav-link" href="#%EF%BC%81%EF%BC%81%EF%BC%81python-ln%E5%88%B0python3%E3%80%90sudo-apt-get-upgrade%E3%80%91%E4%BC%9A%E5%87%BA%E9%94%99%EF%BC%8C%E8%AE%B0%E5%BE%97%E6%94%B9%E5%9B%9E%E6%9D%A5%EF%BC%81%EF%BC%81%EF%BC%81%EF%BC%81%E8%BF%99%E7%A7%8D%E5%9F%BA%E7%A1%80%E5%91%BD%E4%BB%A4%E6%9C%80%E5%A5%BD%E5%88%AB%E5%8A%A8%E5%91%80%EF%BC%81%EF%BC%81%EF%BC%81%EF%BC%81%EF%BC%81"><span class="nav-number">4.</span> <span class="nav-text">！！！python ln到python3【sudo apt-get upgrade】会出错，记得改回来！！！！这种基础命令最好别动呀！！！！！</span></a><ol class="nav-child"><li class="nav-item nav-level-2"><a class="nav-link" href="#%E6%AD%A4%E5%A4%84%E6%97%B6%E9%97%B4%E5%BE%88%E9%95%BF%EF%BC%8C%E5%BB%BA%E8%AE%AE%E5%85%88%E5%BC%80%E4%B8%80%E4%B8%AA%E8%BF%9C%E7%A8%8B%E6%A1%8C%E9%9D%A2%EF%BC%8C%E6%88%96%E8%80%85%E7%94%A8%E7%94%B5%E8%84%91ssh%EF%BC%8C%E6%89%8B%E6%9C%BA%E7%9A%84%E8%AF%9D%E5%BE%88%E5%AE%B9%E6%98%93%E6%96%AD%EF%BC%8C%E4%B8%AD%E9%97%B4%E6%9C%89%E5%BE%88%E5%A4%9A%E9%9C%80%E8%A6%81%E8%BE%93%E5%85%A5y%E7%9A%84%E5%9C%B0%E6%96%B9"><span class="nav-number">4.1.</span> <span class="nav-text">此处时间很长，建议先开一个远程桌面，或者用电脑ssh，手机的话很容易断，中间有很多需要输入y的地方</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#3-2%E4%B8%AD%E6%96%87%E8%AE%BE%E7%BD%AE"><span class="nav-number">4.2.</span> <span class="nav-text">3.2中文设置</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#%E6%93%8D%E4%BD%9C%E6%8F%90%E7%A4%BA%EF%BC%9A%E6%8C%89%E7%A9%BA%E6%A0%BC%E9%94%AE%E5%9C%A8%E5%89%8D%E9%9D%A2%E6%89%93%E9%92%A9%E6%88%96%E8%80%85%E5%8E%BB%E6%8E%89%E5%8B%BE%EF%BC%88%E6%98%9F%E5%8F%B7-%E5%8B%BE%EF%BC%89%EF%BC%8CPageUp-PageDown-%E5%BF%AB%E9%80%9F%E7%BF%BB%E9%A1%B5%EF%BC%8CTab%E9%94%AE%E8%B7%B3%E5%88%B0OK%E6%8C%89%E9%92%AE%E4%B8%8A"><span class="nav-number">4.2.1.</span> <span class="nav-text">操作提示：按空格键在前面打钩或者去掉勾（星号&#x3D;勾），PageUp PageDown 快速翻页，Tab键跳到OK按钮上</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E8%BF%99%E4%B8%80%E6%AD%A5%E6%93%8D%E4%BD%9C%E5%AE%8C%E4%BA%8B%E4%B9%8B%E5%90%8E%E5%8F%91%E7%8E%B0%E6%A0%91%E8%8E%93%E6%B4%BE%E6%97%A0%E6%B3%95%E8%BF%9E%E6%8E%A5%E5%8F%AA%E8%83%BD%E7%94%A8%E7%BD%91%E7%BA%BF%EF%BC%8C%E7%B3%BB%E7%BB%9F%E5%8D%A1%E5%86%99%E5%85%A5%E4%BF%9D%E6%8A%A4%EF%BC%88%E8%BF%99%E6%A0%B7%E7%9A%84%E8%AF%9D%E9%87%8D%E8%A3%85%E7%B3%BB%E7%BB%9F%E8%B4%B9%E5%8A%B2%E4%BA%86%EF%BC%8C%E8%AE%B0%E5%BE%97%E5%85%88%E6%A0%BC%E5%BC%8F%E5%8C%96%E4%B8%BANTFS%EF%BC%89%EF%BC%8C%E5%88%86%E6%9E%90%E5%AF%BC%E8%87%B4%E5%8E%9F%E5%9B%A0%E4%B8%BA%E4%B8%A4%E7%A7%8D%E5%8F%AF%E8%83%BD"><span class="nav-number">4.3.</span> <span class="nav-text">这一步操作完事之后发现树莓派无法连接只能用网线，系统卡写入保护（这样的话重装系统费劲了，记得先格式化为NTFS），分析导致原因为两种可能</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#1-%E6%BA%90%E6%9B%B4%E6%96%B0%E5%AF%BC%E8%87%B4%E7%9A%84"><span class="nav-number">4.3.1.</span> <span class="nav-text">1.源更新导致的</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#2-%E6%98%AF%E5%86%85%E5%AD%98%E5%8D%A1%E6%A0%BC%E5%BC%8F%E8%BF%99%E6%AC%A1%E7%94%A8%E7%9A%84%E6%98%AFFAT32%E7%9A%84"><span class="nav-number">4.3.2.</span> <span class="nav-text">2.是内存卡格式这次用的是FAT32的</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E4%B8%8D%E7%AE%A1%E6%80%8E%E6%A0%B7%E7%8E%B0%E5%9C%A8%E5%8F%AA%E8%83%BD%E7%94%A8%E7%BD%91%E7%BA%BF%E5%8E%BB%E9%85%8D%E7%BD%AEwifi%E8%BF%9E%E6%8E%A5%E4%BA%86%EF%BC%88%E5%9B%A0%E4%B8%BA%E7%B3%BB%E7%BB%9F%E5%8F%AF%E5%86%99%E5%85%A5%E4%BF%9D%E6%8A%A4%EF%BC%8C%E6%98%BE%E7%A4%BA%E5%99%A8%E9%83%BD%E8%BF%9E%E6%8E%A5%E4%B8%8D%E4%B8%8A%EF%BC%89"><span class="nav-number">4.3.3.</span> <span class="nav-text">不管怎样现在只能用网线去配置wifi连接了（因为系统可写入保护，显示器都连接不上）</span></a></li></ol></li></ol></li><li class="nav-item nav-level-1"><a class="nav-link" href="#4-%E8%8A%B1%E7%94%9F%E5%A3%B3"><span class="nav-number">5.</span> <span class="nav-text">4.花生壳</span></a></li><li class="nav-item nav-level-1"><a class="nav-link" href="#5-root%E7%94%A8%E6%88%B7WinSCP%E7%99%BB%E9%99%86"><span class="nav-number">6.</span> <span class="nav-text">5.root用户WinSCP登陆</span></a></li><li class="nav-item nav-level-1"><a class="nav-link" href="#6-%E6%A0%91%E8%8E%93%E6%B4%BE%E8%BF%9C%E7%A8%8B%E6%A1%8C%E9%9D%A2"><span class="nav-number">7.</span> <span class="nav-text">6.树莓派远程桌面</span></a></li><li class="nav-item nav-level-1"><a class="nav-link" href="#7-%E6%A0%91%E8%8E%93%E6%B4%BE-%E5%8F%AF%E4%BB%A5%E9%80%82%E5%BA%94%E6%98%BE%E7%A4%BA%E5%99%A8%E7%9A%84boot-config-txt%E9%85%8D%E7%BD%AE"><span class="nav-number">8.</span> <span class="nav-text">7.树莓派-可以适应显示器的boot&#x2F;config.txt配置</span></a></li><li class="nav-item nav-level-1"><a class="nav-link" href="#8-%E6%A0%91%E8%8E%93%E6%B4%BE%E5%A4%8D%E5%88%B6%E7%B3%BB%E7%BB%9F%E5%88%B0%E6%96%B0%E5%86%85%E5%AD%98%E5%8D%A1%E6%95%99%E7%A8%8B%EF%BC%88%E6%AF%8D%E9%B8%A1%E7%94%9F%E5%B0%8F%E9%B8%A1%EF%BC%89"><span class="nav-number">9.</span> <span class="nav-text">8.树莓派复制系统到新内存卡教程（母鸡生小鸡）</span></a></li></ol></div>
            

          </div>
        </section>
      <!--/noindex-->
      

      

    </div>
  </aside>


        
      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="footer-inner">
        <div class="copyright">&copy; <span itemprop="copyrightYear">2023</span>
  <span class="with-love">
    <i class="fa fa-user"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">LZH</span>

  
</div>


  <div class="powered-by">Powered by <a class="theme-link" target="_blank" href="https://hexo.io">Hexo</a></div>



  <span class="post-meta-divider">|</span>



  <div class="theme-info">Theme &mdash; <a class="theme-link" target="_blank" href="https://github.com/iissnan/hexo-theme-next">NexT.Pisces</a> v5.1.4</div>




        







        
      </div>
    </footer>

    
      <div class="back-to-top">
        <i class="fa fa-arrow-up"></i>
        
      </div>
    

    

  </div>

  

<script type="text/javascript">
  if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
    window.Promise = null;
  }
</script>









  












  
  
    <script type="text/javascript" src="/lib/jquery/index.js?v=2.1.3"></script>
  

  
  
    <script type="text/javascript" src="/lib/fastclick/lib/fastclick.min.js?v=1.0.6"></script>
  

  
  
    <script type="text/javascript" src="/lib/jquery_lazyload/jquery.lazyload.js?v=1.9.7"></script>
  

  
  
    <script type="text/javascript" src="/lib/velocity/velocity.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/lib/velocity/velocity.ui.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/lib/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>
  


  


  <script type="text/javascript" src="/js/src/utils.js?v=5.1.4"></script>

  <script type="text/javascript" src="/js/src/motion.js?v=5.1.4"></script>



  
  


  <script type="text/javascript" src="/js/src/affix.js?v=5.1.4"></script>

  <script type="text/javascript" src="/js/src/schemes/pisces.js?v=5.1.4"></script>



  
  <script type="text/javascript" src="/js/src/scrollspy.js?v=5.1.4"></script>
<script type="text/javascript" src="/js/src/post-details.js?v=5.1.4"></script>



  


  <script type="text/javascript" src="/js/src/bootstrap.js?v=5.1.4"></script>



  


  




	





  





  












  





  

  

  

  
  

  

  

  

</body>
</html>
